package com.zzzy.sys.vo.log;

import com.zzzy.common.vo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Schema(description = "用户登录日志分页查询")
@Data
public class UserLoginLogPageReq extends PageParam {

    @Schema(description = "姓名、昵称", example = "测试01")
    @Length(max = 30, message = "真实姓名不能超过30个字符")
    private String nickName;

    @Schema(description = "登录时间开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginTime;

    @Schema(description = "登录时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
}
